#ifndef MANGOS_AGGRESSORAI_H
#define MANGOS_AGGRESSORAI_H

#include "CreatureAI.h"
#include "Timer.h"

class Creature;

class MANGOS_DLL_DECL AggressorAI : public CreatureAI
{
enum AggressorState
{
    STATE_NORMAL = 1,
    STATE_LOOK_AT_VICTIM = 2
};

public://
    explicit				AggressorAI(Creature *c);

public:///
    void					MoveInLineOfSight(Unit *);
    void					AttackStart(Unit *);
    void					EnterEvadeMode();
    bool					IsVisible(Unit *) const;

    void					UpdateAI(const uint32);
    static int				Permissible(const Creature *);

private:
    uint64					i_victimGuid;
    AggressorState			i_state;
    TimeTracker				i_tracker;
};
#endif
